# user
curl -X GET http://127.0.0.1:8000/user/smscode/18899990000

curl -X POST http://127.0.0.1:8000/user/login \
    -H 'Content-Type:application/json' \
    -d '{"mobile": "18899990000", "code": "5691"}' | jq . --color-output

curl -X GET http://127.0.0.1:8000/user/access/token \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEyNDYwODJ9.pPxCxehKwsTzG7mZ2qnBW0QOo4eR-KOVIFmEfrxeiv4' | jq . --color-output

curl -X GET http://127.0.0.1:8000/user/refresh/token \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjIiLCJleHAiOjE3NTI0NzAwNjN9.rlELyHrWbYBxTg8x12i71DEmN_opF55QLEAldkB72I0' | jq . --color-output

curl -X PUT http://127.0.0.1:8000/user/update/username \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEyNDYwODJ9.pPxCxehKwsTzG7mZ2qnBW0QOo4eR-KOVIFmEfrxeiv4' \
    -H 'Content-Type:application/json' \
    -d '{"username": "法外狂徒fasdfasdf"}' | jq . --color-output

curl -X POST http://127.0.0.1:8000/user/update/avatar \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEyNzA0MDh9.LYCePz9ijCvNYnsp1y2in_1rZWhFV4XkAxjbKtsSYDQ' \
    -F 'file=@/home/happy/ms/userapi/avatar.jpg' | jq . --color-output

curl -X POST http://127.0.0.1:8000/address/create \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEzNjU4ODZ9.fmO2Y-6aLX8sbPlcKiYzSOk6nCVPKX03TE9xINRhqUw' \
    -H 'Content-Type:application/json' \
    -d '{"realname": "大头儿子", "mobile": "18899991112", "region": "广东省白云区", "detail": "xx卢"}' | jq . --color-output

curl -X DELETE http://127.0.0.1:8000/address/delete \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEzNjU4ODZ9.fmO2Y-6aLX8sbPlcKiYzSOk6nCVPKX03TE9xINRhqUw' \
    -H 'Content-Type:application/json' \
    -d '{"id": "92fbeb2724af4f79bd31c30cc0068aa9"}' | jq . --color-output

curl -X PUT http://127.0.0.1:8000/address/update \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEzNjU4ODZ9.fmO2Y-6aLX8sbPlcKiYzSOk6nCVPKX03TE9xINRhqUw' \
    -H 'Content-Type:application/json' \
    -d '{"id": "fc1c080704634b879fa85bb703e62a8a", "realname": "小头爸爸", "mobile": "18899991112", "region": "南京省白云区", "detail": "xx卢发生的"}' | jq . --color-output

curl -X GET http://127.0.0.1:8000/address/detail/fc1c080704634b879fa85bb703e62a8a \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEzNjU4ODZ9.fmO2Y-6aLX8sbPlcKiYzSOk6nCVPKX03TE9xINRhqUw' \
    | jq . --color-output

curl -X GET "http://127.0.0.1:8000/address/list?page=1&size=20" \
    -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOjE5Mzg5MDI3NjkyNDI5OTY3MzYsInN1YiI6IjEiLCJleHAiOjE3NTEzNjc0NTR9.YX8YMaKQr4cupjkHf6a3lw2rq8UWfEUk2f5Slothu8k' \
    | jq . --color-output
    